package com.lzq.springblog.model;

import com.lzq.springblog.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Schema(name = "点赞信息")
@Data
@Component
public class LikeInfo {
    @Schema(name = "点赞信息id")
    private Integer id;
    @Schema(name = "点赞者id")
    private Integer likerId;
    @Schema(name = "被点赞的博客id")
    private Integer likedBlogId;
    private Integer deleteFlag;
    @Schema(name = "博客创建时间")
    private Date createTime;
    private Date updateTime;
    private Boolean isLoginUser;
    public String getUpdateTime() {
        return DateUtils.format(updateTime);
    }
}